package cn.yujian95.hospital.service;

import cn.yujian95.hospital.dto.param.HospitalCmsParam;
import cn.yujian95.hospital.dto.param.HospitalInfoParam;
import cn.yujian95.hospital.entity.HospitalCms;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface HospitalCmsService extends IService<HospitalCms> {

    /**
     * 添加轮播图信息
     *
     * @param param
     * @return
     */
    boolean insert(HospitalCmsParam param);

    /**
     * 轮播图是否存在
     *
     * @param id
     * @return
     */
    boolean countCms(Long id);


    /**
     * 获取轮播图信息
     *
     * @param id
     * @return
     */
    HospitalCms getHospitalCmsInfo(Long id);

    /**
     * 更新轮播图信息
     * @param id
     * @param param
     * @return
     */
    boolean updateCms(Long id, HospitalCmsParam param);

    /**
     * 删除轮播图信息
     * @param id
     * @return
     */
    boolean deleteCms(Long id);

    /**
     * 分页获取轮播图信息
     * @param name
     * @param pageNum
     * @param pageSize
     * @return
     */
    IPage<HospitalCms> listWithQuery(String name, Integer pageNum, Integer pageSize);

    /**
     * 获取轮播图信息列表
     * @return
     */
    List<HospitalCms> searchHospitalCmsInfoList();
}
